﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Teach
    {
        public  string Num; //工号
        public  string Name; //姓名
        public  string Sex;  //性别
        public  int Age;      //年龄

        public Teach(string num , string name , string sex , int age)
        {
            this.Num = num;
            this.Name = name;
            this.Sex = sex;
            this.Age = age;
        }

        public void Dbth()
        {
            Console.WriteLine("老师工号:"+this.Num);
            Console.WriteLine("老师姓名:"+this.Name);
            Console.WriteLine("老师性别:"+this.Sex);
            Console.WriteLine("老师年龄:"+this.Age);
        }
    }
}
